package org.example.test.controller;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping({ "", "/", "/home", "/home/" })
public class HomeController {

	private final Logger LOGGER = LogManager.getLogger(getClass());

	@RequestMapping(method = RequestMethod.GET)
	public String home() {
		LOGGER.info("Home controller");
		return "home";
	}

	@RequestMapping(value = "jquery-test", method = RequestMethod.GET)
	public String jQuery() {
		LOGGER.info("jQuery test");
		return "jquery-test";
	}

	@RequestMapping(value = "polymer-test", method = RequestMethod.GET)
	public String polymer() {
		LOGGER.info("Polymer test");
		return "polymer-test";
	}

}
